package com.example.springboot.utils;

public class Constants {
    public enum FILE {
        /**文件类型有误*/
        FILE_TYPE_ERROR(0,"文件类型有误"),
        /**暂时不支持当前格式上传！*/
        FILE_TYPE_NOT_SUPPORTED(-4,"暂时不支持当前格式上传！"),
        /**没有选择文件*/
        FILE_IS_NULL(-1,"没有选择文件！"),
        /**文件后缀被改过！*/
        SUFFIX_CHANGED(-2,"文件后缀被改过！"),
        /**菜单*/
        UPLOAD_ERROR(-3,"上传有误！"),
        /**本地路径*/
        LOCAL_PATH(0,"E:\\file\\"),

        WORD(1,"文档"),
        AUDIO(2,"音频"),
        VIDEO(3,"视频"),
        IMAGE(4,"图片"),
        FILE(2,"文件"),
        FOLDER(1,"文件夹"),

        OTHERS(5,"其他类型"),
        /**按钮*/
        SUCCESS(1,"上传成功"),

        NO_DEL(1,"文件存在"),

        IS_DEL(0,"文件删除");

        private final int value;
        private final String msg;

        FILE(int value, String msg) {
            this.value = value;
            this.msg = msg;
        }
        public int getValue() {
            return value;
        }
        public String getMsg() {
            return msg;
        }
    }

}
